using UnityEngine;
using System.Collections;
using System.IO;

public class NewGame : MonoBehaviour
{

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    void OnMouseUp()
    {
        //Criar diretório caso o mesmo não exista.
        Game_Directory.getInstance().CreateDirectory();

        try
        {
            Game_Load.getInstance().LoadGame();
        }
        catch (FileNotFoundException exception) { print("ERROR: " + exception); }

        finally
        {
            Application.LoadLevel("Cenas");
        }
    }
}